package com.open.capacity.finance.dao;

import com.open.capacity.finance.entity.SourceBaseCustomValue;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * 自定义档案值
 *
 * @author
 * @email
 * @date 2023-02-03 10:42:09
 */
@Mapper
public interface SourceBaseCustomValueDao {

    int save(SourceBaseCustomValue sourceBaseCustomValue);

    int deleteAll();

    int deleteByCompanyIdAndKjnd(@Param("companyId") String companyId, @Param("kjnd")Integer kjnd);

    SourceBaseCustomValue findById(String id);

    List<String> findCodeByIdNames(@Param("names") String[] names);

    List<SourceBaseCustomValue> findAll(Map<String, Object> params);

}
